import request from '@/utils/request'


// 查询部门下拉树结构
export function getDeptAndPost(val) {
  let url = '/erecord/common/getDeptAndPost'
  if (val) {
    url = url + '?' + val;
  }
  return request({
    url: url,
    method: 'get'
  })
}

export function getEmpUserByName(val) {
  let url = '/erecord/common/getEmpUserByName'
  if (val) {
    url = url + '?name=' + val;
  }
  return request({
    url: url,
    method: 'get'
  })
}

export function getVehiclesByNumber(val) {
  let url = '/erecord/common/getVehiclesByNumber'
  if (val) {
    url = url + '?number=' + val;
  }
  return request({
    url: url,
    method: 'get'
  })
}

export function getRegionTree() {
  let url = '/erecord/common/getRegionTree'
  return request({
    url: url,
    method: 'get'
  })
}

export function uploadFileSize() {
  return 200;
}
